Re: Lindows programs unexpectantly closing



On 2007-06-29, sk8r-365 <sk8r-365@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Chris F.A. Johnson said:
On 2007-06-29, sk8r-365 wrote:

If you use '&' there is little likelihood for output because that
shell will not have that app as a child process.

A background process *is* a child of the shell that spawned it, and
anything it sends to stdout or stderr will appear in that shell.

Not always the case from what I've seen. Had a problem with gphoto2
a while ago - I use a card reader now because of it - and _no_ error
messages appeared *anywhere* I searched to indicate why the application
crashed when trying to access the camera. Plus, on Debian Etch,
gnomesword 2.1.9-1 crashes without any output messages either to console
or .xsession-errors when executed without or without an ampersand.

Start it in xterm/konsole/rxvt/whatever and see. Alternatively, start it
with "strace whatever".

--
"The idea that Bill Gates has appeared like a knight in shining armour
to lead all customers out of a mire of technological chaos neatly
ignores the fact that it was he who, by peddling second-rate technology,
led them into it in the first place." -- Douglas Adams
.



Relevant Pages

  • Re: Getting current time in milliseconds
    ... See "perldoc -q env" for a possible workaround. ... But then it is acting as a new parent process, not as a child process. ... because it sets the value in the currently running Perl process, ... If you want to modify the value of the shell ...
    (comp.lang.perl.misc)
  • Re: Lindows programs unexpectantly closing
    ... shell will not have that app as a child process. ... gnomesword 2.1.9-1 crashes without any output messages either to console ...
    (alt.os.linux)
  • Inappropriate ioctl for device when calling tcsetpgrp() on Solaris
    ... I'm writing a shell program that will do background/foreground executions. ... On Solaris, when I put a child process to background, I use tcsetpgrp(fd, ... shell_pgrp_id) to let my shell have the control of terminal. ...
    (comp.unix.programmer)
  • Re: Getting current time in milliseconds
    ... See "perldoc -q env" for a possible workaround. ... But then it is acting as a new parent process, not as a child process. ... but all of that is some magic on the shell side and applies to any ... doesn't have anything to do with Perl and that's why the answer in the ...
    (comp.lang.perl.misc)
  • Re: Lindows programs unexpectantly closing
    ... shell will not have that app as a child process. ... A background process *is* a child of the shell that spawned it, ... gnomesword 2.1.9-1 crashes without any output messages either to console ...
    (alt.os.linux)