[polypaudio-commits] r771 - /trunk/src/polypcore/pid.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Sat Apr 22 13:04:06 PDT 2006
Author: lennart
Date: Sat Apr 22 22:04:06 2006
New Revision: 771
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=771&root=polypaudio&view=rev
Log:
try to remove the directory where the PID file resides in after removing the PID file
Modified:
trunk/src/polypcore/pid.c
Modified: trunk/src/polypcore/pid.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/pid.c?rev=771&root=polypaudio&r1=770&r2=771&view=diff
==============================================================================
--- trunk/src/polypcore/pid.c (original)
+++ trunk/src/polypcore/pid.c Sat Apr 22 22:04:06 2006
@@ -41,6 +41,7 @@
#include <polypcore/util.h>
#include <polypcore/log.h>
+#include <polypcore/xmalloc.h>
#include "pid.h"
@@ -191,6 +192,7 @@
char fn[PATH_MAX];
int ret = -1;
pid_t pid;
+ char *p;
pa_runtime_path("pid", fn, sizeof(fn));
@@ -223,6 +225,11 @@
goto fail;
}
+ if ((p = pa_parent_dir(fn))) {
+ rmdir(p);
+ pa_xfree(p);
+ }
+
ret = 0;
fail:
More information about the pulseaudio-commits
mailing list