1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
samba-mirror/source4/smbd
Rusty Russell f80e399ab2 source4/smbd/pidfile: don't panic if pid file is corrupt.
In particular, on a virtual machine after a forced reboot, it
contained "Ille" instead of a valid PID.  Given it was the right
length, I'm assuming it was filesystem corruption.

process_exists_by_pid() then panics, when given a pid < 1.

Reported-by: lostogre on #samba-technical
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Thu Jun 28 05:19:24 CEST 2012 on sn-devel-104
2012-06-28 05:19:24 +02:00
..
pidfile.c source4/smbd/pidfile: don't panic if pid file is corrupt. 2012-06-28 05:19:24 +02:00
process_model.c Revert making public of the samba-module library. 2011-12-03 08:36:30 +01:00
process_model.h s4-server: cleanup allocation of process models 2010-11-03 10:40:52 +00:00
process_onefork.c s4:smbd: use tevent_ fn names instead of leagcy event_ ones 2011-08-13 09:54:16 -04:00
process_prefork.c s4:smbd: use tevent_ fn names instead of leagcy event_ ones 2011-08-13 09:54:16 -04:00
process_single.c s4:smbd: fix typos 2012-06-12 09:21:14 +02:00
process_standard.c s4:smbd: fix typos 2012-06-12 09:21:14 +02:00
process_thread.c s4:smbd: use tevent_ fn names instead of leagcy event_ ones 2011-08-13 09:54:16 -04:00
samba.8.xml samba.8: Fix typo: deamon -> daemon. 2012-03-13 13:07:04 +01:00
server.c lib/param: Create a seperate server role for "active directory domain controller" 2012-06-15 09:18:33 +02:00
service_named_pipe.c libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbol 2011-06-20 08:12:03 +02:00
service_stream.c s4-messaging: Pass the loadparm context, not just the messaging path 2011-10-13 14:06:07 +02:00
service_stream.h server_id.idl: Bring server_id.idl in common 2011-06-09 12:40:08 +02:00
service_task.c s4-messaging: Pass the loadparm context, not just the messaging path 2011-10-13 14:06:07 +02:00
service_task.h server_id.idl: Bring server_id.idl in common 2011-06-09 12:40:08 +02:00
service.c s4-smbd: don't initialise process models more than once 2010-10-30 23:49:00 +11:00
service.h r23792: convert Samba4 to GPLv3 2007-10-10 14:59:12 -05:00
wscript_build Revert "waf-mitkrb5: enable dcerpc_server library to support OpenChange client code" 2012-06-01 16:46:07 +02:00