search for: getpgid

Displaying 18 results from an estimated 18 matches for "getpgid".

Did you mean: getegid
2013 Feb 15
2
getpgrp
These days, sshd.c has: static void grace_alarm_handler(int sig) { ... if (getpgid(0) == getpid()) { signal(SIGTERM, SIG_IGN); killpg(0, SIGTERM); } sigdie(...); } however (really) old BSDs do not have getpgid(). They do have getpgrp(), which does what we want here. The question is what to do if we have neither: return the pid (a...
2015 Jun 29
3
[Bug 2419] New: SECCOMP filter does not accept getpgid syscall
https://bugzilla.mindrot.org/show_bug.cgi?id=2419 Bug ID: 2419 Summary: SECCOMP filter does not accept getpgid syscall Product: Portable OpenSSH Version: 6.8p1 Hardware: Other OS: Linux Status: NEW Severity: enhancement Priority: P5 Component: sshd Assignee: unassigned-bugs at mindrot.org Reporter: j...
2001 Sep 17
1
autoconf cleanup for AC_FUNC_GETPGRP and GETPGRP_VOID
...d. diff -ru autoconf/doc/autoconf.texi autoconf-fix1/doc/autoconf.texi --- autoconf/doc/autoconf.texi Mon Sep 17 17:05:37 2001 +++ autoconf-fix1/doc/autoconf.texi Mon Sep 17 17:46:43 2001 @@ -3577,11 +3577,24 @@ @defmac AC_FUNC_GETPGRP @acindex FUNC_GETPGRP @cvindex GETPGRP_VOID + at c @fuindex getpgid @c @fuindex getpgrp + at prindex @code{getpgid} @prindex @code{getpgrp} -If @code{getpgrp} takes no argument (the @sc{posix.1} version), define - at code{GETPGRP_VOID}. Otherwise, it is the @sc{bsd} version, which takes -a process ID as an argument. This macro does not check whether +Define @co...
2008 Nov 20
1
Stopping bdrb from another process gets the process killed
...rocess, let''s say a rake task, the rake task gets killed because it gets the SIGTERM signal. In the class StarStop we have: def kill_process arg_pid_file pid = nil pid = File.open(arg_pid_file, "r") { |pid_handle| pid_handle.gets.strip.chomp.to_i } pgid = Process.getpgid(pid) puts "Stopping BackgrounDRb with pid #{pid}...." Process.kill(''-TERM'', pgid) File.delete(arg_pid_file) if File.exists?(arg_pid_file) puts "Success!" end What I did was, that instead of killing pgid, I''m doing a system call and k...
2017 Jan 25
2
parallel::mc*: Is it possible for a child process to know it is a fork?
When using multicore-forking of the parallel package, is it possible for a child process to know that it is a fork? Something like: parallel::mclapply(1:10, FUN = function(i) { test_if_running_in_a_fork() }) I'm looking into ways to protect against further parallel processes (including threads), which not necessarily are created via the parallel:mc* API, are being spawned off recursively.
2020 Jul 27
3
[PATCH] Add syscall wrappers required by libkeyutils
...this question as I am likely not skilled enough to answer this. For me it looks like there are currently two cases of using syscalls in klibc: 1. Exporting stubs directly: For many syscalls, automatically generated stubs are directly exported as symbols for use by the linker. Examples: setpgid()/ getpgid() 2. Using stubs internally for implementing public function. The auto generated stub is used as base for implementing a C library function. Example: exit() For both cases, the code for the individual stubs is auto generated using a perl script (with an arch specific "plugin"). All gene...
2008 Jan 03
5
Start script not working when run via Rake
...workaround I have modified by ''backgroundrb'' script as follows: when ''stop'' path = "#{RAILS_HOME}/log/backgroundrb.pid" pid = nil begin File.open(path, "r") { |pid_handle| pid = pid_handle.gets.strip.chomp.to_i } pgid = Process.getpgid(pid) Process.kill(''TERM'', pid) Process.kill(''-TERM'', pgid) Process.kill(''KILL'', pid) rescue puts $! ensure puts "Deleting pid file" File.delete(path) if File.exists?(path) end Cheers, Olly --- FreeAg...
2008 Jun 05
14
Why not ignore stale PID files?
Hi, I have an application which is dying horrible deaths (i.e. segmentation faults) in mid-flight, in production... And of course, I should fix it. But while I find and fix the bugs, I found something I think should be different - I can work on submitting a patch, as it is quite simple, but I might be losing something on my rationale. When Mongrel segfaults, it does not -obviously- get to clean
2017 Jan 25
0
parallel::mc*: Is it possible for a child process to know it is a fork?
...d; SEXP is_forked(){ return ScalarLogical(R_isForkedChild); } But that won't be allowed on CRAN: * checking compiled code ... NOTE Found non-API call to R: ?R_isForkedChild? Compiled code should not call non-API entry points in R. Another method would be to look at getppid(2) and getpgid(2) to lookup the parent-id and group-id of the current process and test if it matches that of the (parent) R process. If you are only interested in limiting further parallelization within the fork, perhaps you can simply use parallel::mcaffinity to restrict the forked process to a single core.
2020 Jul 27
0
[PATCH] Add syscall wrappers required by libkeyutils
...t;skilled enough to answer this. > >For me it looks like there are currently two cases of using syscalls in >klibc: >1. Exporting stubs directly: For many syscalls, automatically generated >stubs >are directly exported as symbols for use by the linker. Examples: >setpgid()/ >getpgid() > >2. Using stubs internally for implementing public function. The auto >generated >stub is used as base for implementing a C library function. Example: >exit() > >For both cases, the code for the individual stubs is auto generated >using a >perl script (with an arch sp...
2018 Sep 09
1
Type enforcement / mechanism not clear
On 09/09/2018 07:19 AM, Daniel Walsh wrote: > sesearch -A -s httpd_t -t system_conf_t -p read > > If you feel that these files should not be part of the base_ro_files > then we should open that for discussion. I think the question was how users would know that the policy allowed access, as he was printing rules affecting httpd_t's file read access, and looking for
2020 Jul 08
2
[PATCH] Add syscall wrappers required by libkeyutils
libkeyutils is used by the keyctl command which is required for loading keys into the kernel (e.g. for mounting an authenticated UBIFS as root file system). libkeyutils usually invokes syscall() directly. As syscall() is not provided by klibc, libkeyutils has to be slightly modified for using the klibc wrappers. Signed-off-by: Christian Eggers <ceggers at arri.de> ---
2006 Oct 13
3
error running webserver 7 with the DTrace dvm agents...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <title></title> </head> <body text="#330000" bgcolor="#ffffff"> <tt><font size="+1">I am attempting to run the sun webserver 7
2017 Jan 23
2
undefined symbols during linking LLDB 4.0 RC1
...000000000000050 GLIBC_2.2.5 _exit 0000000000000000 DF *UND* 000000000000006a GLIBC_2.2.5 srand 0000000000000000 DF *UND* 00000000000000cd Base tigetnum 0000000000000000 DF *UND* 0000000000000064 GLIBC_2.2.5 pread 0000000000000000 DF *UND* 0000000000000025 GLIBC_2.2.5 getpgid 0000000000000000 DF *UND* 00000000000000fc GLIBC_2.2.5 pthread_setspecific 0000000000000000 DF *UND* 0000000000000098 GLIBC_2.2.5 popen 0000000000000000 DF *UND* 0000000000000086 GLIBC_2.2.5 strsep 0000000000000000 DF *UND* 000000000000000f Base __cxa_pure_virtual 000...
2015 Mar 02
127
[Bug 2360] New: Bugs intended to be fixed in 6.9
https://bugzilla.mindrot.org/show_bug.cgi?id=2360 Bug ID: 2360 Summary: Bugs intended to be fixed in 6.9 Product: Portable OpenSSH Version: -current Hardware: Other OS: Linux Status: NEW Keywords: meta Severity: enhancement Priority: P5 Component: Miscellaneous
2017 Jan 19
2
undefined symbols during linking LLDB 4.0 RC1
Hello, I update my building scripts to build LLVM 4.0 RC1 (with clang, lldb, libc++, libc++abi, lld) on CentOS 6 and I got a lot of undefined symbols during linking LLDB. I'm using clang-3.9 and this configuration: -DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++
2013 Aug 21
0
Build problems: klibc with Linux 3.10.7
...etscheduler SYSCALL FOUND: sysfs SYSCALL FOUND: chdir SYSCALL FOUND: stat64 SYSCALL FOUND: uname SYSCALL FOUND: setfsuid SYSCALL FOUND: getsid SYSCALL FOUND: fstatfs64 SYSCALL FOUND: brk SYSCALL FOUND: mpx SYSCALL FOUND: clock_nanosleep SYSCALL FOUND: setxattr SYSCALL FOUND: adjtimex SYSCALL FOUND: getpgid SYSCALL FOUND: fstat SYSCALL FOUND: getgroups SYSCALL FOUND: sigaltstack SYSCALL FOUND: sys_debug_setcontext SYSCALL FOUND: chown SYSCALL FOUND: timer_getoverrun SYSCALL FOUND: fchownat SYSCALL FOUND: uselib SYSCALL FOUND: gettimeofday SYSCALL FOUND: fallocate SYSCALL FOUND: getpgrp SYSCALL FOUND:...
2013 Aug 21
5
Build problems: klibc with Linux 3.10.7
On Tue, Aug 20, 2013 at 07:44:39AM +0200, leroy christophe wrote: > > > Find attached two patches I have in order to build klibc 2.0.2 > against kernel 3.8.13 > We had to introduce those patches when going from kernel 3.6 to kernel 3.7 > Hope it helps. > those patches are wrong and again very brittle. just use the way it is described in `make help': A) cd ~/src/linux