diff --git a/killproc-2.21.dif b/killproc-2.21.dif index 2273310..b7a73be 100644 --- a/killproc-2.21.dif +++ b/killproc-2.21.dif @@ -1,8 +1,8 @@ --- Makefile | 6 ++---- - libinit.c | 4 ++-- + libinit.c | 7 ++++--- startproc.c | 4 ++-- - 3 files changed, 6 insertions(+), 8 deletions(-) + 3 files changed, 8 insertions(+), 9 deletions(-) --- Makefile +++ Makefile 2016-01-25 15:42:08.730864821 +0000 @@ -20,7 +20,7 @@ # # Architecture --- libinit.c -+++ libinit.c 2012-05-23 11:04:58.000000000 +0000 ++++ libinit.c 2016-10-04 13:22:04.272083140 +0000 @@ -265,7 +265,7 @@ static inline boolean isnetfs(const char static void init_mounts(void) { @@ -39,6 +39,16 @@ const size_t nlen = strlen(point); MNTINFO *restrict p; if (posix_memalign((void*)&p, sizeof(void*), alignof(MNTINFO)+(nlen+1)) != 0) { +@@ -626,7 +626,8 @@ static pid_t getsession(const pid_t pid) + { + pid_t session = getsid(pid); + if ((long)session < 0) { +- warn("can not get session id for process %ld!\n", (long)pid); ++ if (errno != ESRCH) ++ warn("can not get session id for process %ld!\n", (long)pid); + session = 1; + } + return session; --- startproc.c +++ startproc.c 2014-05-27 12:08:10.000000000 +0000 @@ -778,7 +778,7 @@ retry: diff --git a/sysvinit.changes b/sysvinit.changes index 0aa8a7a..d148ffb 100644 --- a/sysvinit.changes +++ b/sysvinit.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Oct 4 13:31:43 UTC 2016 - werner@suse.de + +- Avoid spurious waring on a not existin session of a not existing + process (boo#1002492) + ------------------------------------------------------------------- Tue Jan 26 10:24:25 UTC 2016 - sweet_f_a@gmx.de