ports/net/linphone-base/files/patch-coreapi::misc.c
Maxim Sobolev 0dfe76074b Fix auto-kill option.
PR:		49733
Submitted by:	Yoshiyuki NAKAMICHI <nakamiti-sendpr@emergence.jp>
2003-07-14 18:01:46 +00:00

23 lines
597 B
C

--- coreapi/misc.c.orig Wed Mar 12 09:52:05 2003
+++ coreapi/misc.c Wed Mar 12 09:52:39 2003
@@ -87,7 +87,7 @@
pid_t pid;
/* try to kill all artsd*/
- command=g_strdup_printf("ps -u %s |grep artsd",getenv("LOGNAME"));
+ command=g_strdup_printf("ps -c %s |grep artsd",getenv("LOGNAME"));
out=popen(command,"r");
if (out!=NULL)
{
@@ -102,7 +102,7 @@
}
g_free(command);
/* do the same with esd*/
- command=g_strdup_printf("ps -u %s |grep esd",getenv("LOGNAME"));
+ command=g_strdup_printf("ps -c %s |grep esd",getenv("LOGNAME"));
out=popen(command,"r");
if (out!=NULL)
{