diff options
author | /dev/humancontroller <devhc@example.com> | 2015-02-04 11:42:43 +0100 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-03-09 13:51:06 +0100 |
commit | eabaabaaafe9daa690432059261143b0e4fecfe5 (patch) | |
tree | cba36c19c383b729a5fe63434a6dc9687abc9603 /src/sys/sys_win32.c | |
parent | 6aec9f7560daa005c513cde384f063f0b9b55dbc (diff) |
remove the (generally unsecure) use of PIDs and PID files
this includes the removal of the "safe mode" question feature
Diffstat (limited to 'src/sys/sys_win32.c')
-rw-r--r-- | src/sys/sys_win32.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/sys/sys_win32.c b/src/sys/sys_win32.c index 635b157f..6f251299 100644 --- a/src/sys/sys_win32.c +++ b/src/sys/sys_win32.c @@ -683,39 +683,3 @@ void Sys_PlatformExit( void ) timeEndPeriod(timerResolution); #endif } - -/* -============== -Sys_PID -============== -*/ -int Sys_PID( void ) -{ - return GetCurrentProcessId( ); -} - -/* -============== -Sys_PIDIsRunning -============== -*/ -qboolean Sys_PIDIsRunning( int pid ) -{ - DWORD processes[ 1024 ]; - DWORD numBytes, numProcesses; - int i; - - if( !EnumProcesses( processes, sizeof( processes ), &numBytes ) ) - return qfalse; // Assume it's not running - - numProcesses = numBytes / sizeof( DWORD ); - - // Search for the pid - for( i = 0; i < numProcesses; i++ ) - { - if( processes[ i ] == pid ) - return qtrue; - } - - return qfalse; -} |