help with WEXITSTATUS in C


 
Thread Tools Search this Thread
Top Forums Programming help with WEXITSTATUS in C
# 1  
Old 03-15-2011
help with WEXITSTATUS in C

when a execute this line
printf("%d\n",WEXITSTATUS(status));
i get no output, whats could be the possible causes?

---------- Post updated at 09:29 PM ---------- Previous update was at 09:27 PM ----------

nvm i figured it out, u can delete this thread
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Programming

C - WEXITSTATUS() question

I want to check if an application is still running under C. So far I've been using int rc; rc=WEXITSTATUS( ) if(rc > 0) { //then I exited } I was wondering seeing as WEXITSTATUS in man pages is close to the WAIT() if it was thread blocking and if it was how would I go about making... (4 Replies)
Discussion started by: james2432
4 Replies

2. Programming

Question on order of headers and WEXITSTATUS

In one of the Unix Programming FAQ's they have the following headers in the program to catch SIGCHLD #include <sys/types.h> /* include this before any other sys headers */ #include <sys/wait.h> /* header for waitpid() and various macros */ #include <signal.h> /* header for signal... (5 Replies)
Discussion started by: frequency8
5 Replies
Login or Register to Ask a Question