[Eric] eric4 refuses to be backgrounded
Dan
danmbox at gmail.com
Wed Nov 21 22:50:20 GMT 2012
Here's what an strace looks like (for stdin, stdout, stderr reassigned
to /dev/null):
strace -f -o /tmp/log.txt eric4 >/dev/null &>/dev/null &
...
18697 getpgrp() = 18692
18697 ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf9ef968) = -1 EINVAL
(Invalid argument)
18697 open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
18697 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=4*1024}) = 0
18697 fcntl64(255, F_GETFD) = -1 EBADF (Bad file descriptor)
18697 dup2(3, 255) = 255
18697 close(3) = 0
18697 ioctl(255, TIOCGPGRP, [28100]) = 0
18697 rt_sigaction(SIGTTIN, {SIG_DFL, [], 0}, {SIG_IGN, [], 0}, 8) = 0
18697 kill(0, SIGTTIN) = 0
18697 --- SIGTTIN (Stopped (tty input)) @ 0 (0) ---
... and then it keeps it getting SIGTTIN. Interestingly it eventually
resumes. This could be some kind of failed daemonization magic.
-- Dan
On 11/22/12, Mike C. Fletcher <mcfletch at vrplumber.com> wrote:
> On 12-11-21 05:13 PM, Dan wrote:
>> In Linux, eric 4.5.7 seems to refuse to be run as a background job:
>>
>> eric &
>>
>> reports Stopped after a while, and I have to "fg" it to continue. Any
>> idea why this might happen? I'm on Ubuntu 12.04.
> I can confirm that the behaviour exists on a 12.04 Kubuntu box as well...
>
> (gui-env)mcfletch at raistlin:~/atx-dev/digistream$ eric4 --debug &
> [2] 32333
> (gui-env)mcfletch at raistlin:~/atx-dev/digistream$ DEBUG:root:Importing
> Preferences
> Warning: translation file 'qt_en_CA'could not be loaded.
> Using default.
> Warning: translation file 'eric4_en_CA'could not be loaded.
> Using default.
> Warning: translation file 'qscintilla_en_CA'could not be loaded.
> Using default.
> DEBUG:root:Importing packages...
> DEBUG:root:Generating Main Window...
> DEBUG:root:Initializing Plugin Manager...
> DEBUG:root:Generating Main User Interface...
> DEBUG:root:Creating Layout...
> DEBUG:root:Creating Viewmanager...
> DEBUG:root:Creating dockable windows...
>
>
> [2]+ Stopped eric4 --debug
>
> No idea why. Same command without the & runs fine.
>
> HTH,
> Mike
>
> --
> ________________________________________________
> Mike C. Fletcher
> Designer, VR Plumber, Coder
> http://www.vrplumber.com
> http://blog.vrplumber.com
>
> _______________________________________________
> Eric mailing list
> Eric at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/eric
>
More information about the Eric
mailing list