Mail Archives: cygwin-apps/2000/07/15/23:40:50
first question. Is there anyway to have a console window close after a
program has forked, and the parent process returns?
example scenario: A user goes start|run,
this opens a console window
somebackgrounder now forks, the parent returns with 0, and the child process
stays in the background.
but the console window stays open?!
second question: does anyone know why argv is different for the following
2)start|run, cmd (running win2k). then (from any drive)
in 1, argv is C:/cygwin/usr/local/program.exe
in 2, argv is /usr/local/program.exe
Note that bash was not the shell in 2! I'm quite happy to code around this
myself, but if someone wanted to provide a pointer as to where I should
place it I'm happy to code around it for cygwin..
The reason it's a issue, is that I want to call exec(argv,newswitches),
which the above behaviour scuttles..
- Raw text -