Click here to Skip to main content
16,011,805 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to block execution of GUI programs passed to command.com/cmd.exe Pin
nick4u26-Jul-03 3:47
nick4u26-Jul-03 3:47 
AnswerRe: How to block execution of GUI programs passed to command.com/cmd.exe Pin
spoulson26-Jul-03 4:55
spoulson26-Jul-03 4:55 
AnswerRe: How to block execution of GUI programs passed to command.com/cmd.exe Pin
Andrew Schetinin26-Jul-03 8:44
Andrew Schetinin26-Jul-03 8:44 
AnswerRe: How to block execution of GUI programs passed to command.com/cmd.exe Pin
Ryan Binns26-Jul-03 20:39
Ryan Binns26-Jul-03 20:39 
Questionsignal(SIGCLD,SIG_IGN) can not prevent zombie process? Pin
George226-Jul-03 3:13
George226-Jul-03 3:13 
AnswerRe: signal(SIGCLD,SIG_IGN) can not prevent zombie process? Pin
Johnny ²26-Jul-03 4:21
Johnny ²26-Jul-03 4:21 
GeneralRe: signal(SIGCLD,SIG_IGN) can not prevent zombie process? Pin
George226-Jul-03 16:36
George226-Jul-03 16:36 
GeneralRe: signal(SIGCLD,SIG_IGN) can not prevent zombie process? Pin
Johnny ²26-Jul-03 21:41
Johnny ²26-Jul-03 21:41 
Yes, the SA_NOCLDSTOP flag means that no signal will be raised by the child when it stops, and this should be consistent across different flavours of Unix (check the man page to be sure - it should have been in Linux for several years now)

Its more work to setup, but its a lot more powerful version of signal. You can use it like this:

  sigaction sig;<br />
<br />
  sigemptyset (&sig);<br />
  sig.sa_flags   = SA_NOCLDSTOP;<br />
  sig.sa_handler = SIG_IGN;<br />
<br />
  sigaction (SIGCHLD, &sig, NULL);

GeneralRe: signal(SIGCLD,SIG_IGN) can not prevent zombie process? Pin
George227-Jul-03 1:34
George227-Jul-03 1:34 
GeneralRe: signal(SIGCLD,SIG_IGN) can not prevent zombie process? Pin
Johnny ²27-Jul-03 6:55
Johnny ²27-Jul-03 6:55 
GeneralRe: signal(SIGCLD,SIG_IGN) can not prevent zombie process? Pin
George227-Jul-03 15:59
George227-Jul-03 15:59 
Generala strange problemo.. Pin
safee ullah26-Jul-03 3:00
safee ullah26-Jul-03 3:00 
GeneralRe: a strange problemo.. Pin
geo_m26-Jul-03 4:46
geo_m26-Jul-03 4:46 
GeneralRe: a strange problemo.. Pin
safee ullah27-Jul-03 18:01
safee ullah27-Jul-03 18:01 
GeneralOffice XP colors Pin
Xakep26-Jul-03 1:51
Xakep26-Jul-03 1:51 
GeneralRe: Office XP colors Pin
Snyp26-Jul-03 3:09
Snyp26-Jul-03 3:09 
GeneralGeneral question about MFC app with database support Pin
kydfru26-Jul-03 0:39
kydfru26-Jul-03 0:39 
GeneralRe: General question about MFC app with database support Pin
Toni7826-Jul-03 7:40
Toni7826-Jul-03 7:40 
GeneralRe: General question about MFC app with database support Pin
Beer2626-Jul-03 7:41
Beer2626-Jul-03 7:41 
GeneralWin32 MDI child creation w/ lParam Pin
spoulson26-Jul-03 0:31
spoulson26-Jul-03 0:31 
GeneralRe: Win32 MDI child creation w/ lParam Pin
spoulson29-Jul-03 1:21
spoulson29-Jul-03 1:21 
QuestionFucntion declaration??? Pin
Bob Stanneveld25-Jul-03 23:42
Bob Stanneveld25-Jul-03 23:42 
AnswerRe: Fucntion declaration??? Pin
Andrew Walker26-Jul-03 0:00
Andrew Walker26-Jul-03 0:00 
GeneralRe: Fucntion declaration??? Pin
Bob Stanneveld26-Jul-03 0:03
Bob Stanneveld26-Jul-03 0:03 
GeneralPermutations Pin
doctorpi25-Jul-03 22:20
doctorpi25-Jul-03 22:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.