SDL/src
Sam Lantinga 2d957ea3af Fixed bug #633
Description From  Michael Stone   2008-09-25 19:27:29   (-) [reply]

To determine whether a pid is occupied with the kill(pid, 0) idiom, you have to
test

#include <signal.h>
#include <errno.h>
kill(pid, 0) < 0 && errno == ESRCH

not just

#include <signal.h>
kill(pid, 0) < 0

otherwise you get incorrect results when pid is running as a different user
(causing kill(pid, 0) to return -1 + EPERM).

src/audio/alsa/SDL_alsa_audio.c is certainly affected by this bug in both
1.2.13 and 1.3-trunk. It probably occurs in other places as well.
2009-02-17 05:17:51 +00:00
..
audio Fixed bug #633 2009-02-17 05:17:51 +00:00
cdrom Fixed some dependency issues with SDL_revision.h 2009-01-04 05:52:14 +00:00
cpuinfo Fixed some dependency issues with SDL_revision.h 2009-01-04 05:41:52 +00:00
events indent 2009-01-04 17:14:27 +00:00
file Updated copyright date 2008-12-08 00:27:32 +00:00
haptic Fixed compilation on Mac OS X 10.3.9 2009-01-19 15:15:03 +00:00
joystick Fix a 64bit issue in linux/SDL_sysjoystick (int != long on 64bit) 2009-01-11 23:39:11 +00:00
libm Fixed Visual C++ release build for Visual C++ 2005 2009-01-10 18:32:24 +00:00
loadso Reverted Bob's indent checkin 2009-01-10 21:50:26 +00:00
main Updated copyright date 2008-12-08 00:27:32 +00:00
stdlib Updated copyright date 2008-12-08 00:27:32 +00:00
thread Updated copyright date 2008-12-08 00:27:32 +00:00
timer Updated copyright date 2008-12-08 00:27:32 +00:00
video Fixed destination of XCopyArea() 2009-02-15 06:12:52 +00:00
SDL_compat.c Fixed NULL pointer dereference 2009-01-13 03:53:22 +00:00
SDL_error_c.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_error.c Reverted Bob's indent checkin 2009-01-10 21:50:26 +00:00
SDL_fatal.c Fixed some dependency issues with SDL_revision.h 2009-01-04 05:41:52 +00:00
SDL_fatal.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL.c Added missing void 2009-01-04 23:36:53 +00:00