I'm forking a process, then waiting to pick it up with
waitpid(-1,0,WNOHANG)
but waitpid() returns -1 and error 10: No child processes ??
I suspect this may be somehow system/kernel dependent, coz' I have such
code in a few places and it has always worked just fine, i.e. returned
0 when no child existed or had exited.
I have a SIGCHLD signal handler, which just increments a counter. When
the counter is >0, I call waitpid().
I obviously googled this, and came across a few hits, but nothing really
useful.
/Per Jessen, Zürich
--
To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-programming+help(a)opensuse.org
Hi
I am recently writing an application for the openSUSE Weekly News Team with Qt
C++ which should get the statistics and so on.
1.:
It downloads the
http://lists.opensuse.org/stats/general/general-mlmmj_subcount-day.png
picture, but I don't know how to read out the text. Jan (dl9pf) made a Python
script which reads out the text, but I don't know how to manage it with C++.
I know I could introduce the python script, but I think that isn't the nicest
way to do it.
2.:
It should download the source from the https://users.opensuse.org site, to
read out the statistics (how many users etc), but I just get:
<HTML><HEAD><TITLE>Novell iChain</TITLE></HEAD><BODY><b><p>Your old browser
does not support a 302 Redirect.</b></BODY></HTML>
How can I avoid that?
3.:
Probably the hardest question. How can I login myself through the program on
opensuse.org and to upload the translated news to the weekly news site (I
thought about the QHttpHeader, but I am not sure if it would work).
----------
mfg / best
Sebastian Schöbinger
//Member of the openSUSE Team //
//Writer of the openSUSE News (Tips and Tricks) //
//Translator of the openSUSE News //
//http://de.opensuse.org/Benutzer:STS301 //
//http://linux301.wordpress.com //
Public openPGP key: 4C5E 2C32 7F1B 574C 0746 2DB1 724B E45F 1FC7 93A4
Hi all.
How do i get the PID of a process by the process-name?
I'm looking for the same thing pgrep does, but as a C-function.
Regards
.....Volker
--
To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-programming+help(a)opensuse.org