Displaying 20 results from an estimated 57 matches for "setpgid".
Did you mean:
setgid
2011 Mar 11
1
setpgid() before exec'ing qemu
...ss to die.
So I changed the oz code to call close (in python "del obj") and all is well,
however I was looking in libquestfs code and saw:
#if 0
/* Set up a new process group, so we can signal this process
* and all subprocesses (eg. if qemu is really a shell script).
*/
setpgid (0, 0);
#endif
Any reason this is "if def'ed" out?
this was done in commit 88f69eb03160a62d38
I was thinking this might prevent my problem from occuring in the first place?
Chris:
Any special reason you are using kill_subprocess()?
def kill_subprocess (self):
u"&...
2004 Aug 06
1
how to start liveice with screen?
Moin,
I installed liveice as well as 'screen' at a debian maschine, both
applications are running fine. But when I try to start liveice in a 'screen'
environment then the liveice process ends without an error message:
$ /usr/bin/screen -dmS liveice /usr/bin/liveice
A prefixed 'strace -f' shows me:
[pid 5614] old_mmap(NULL, 167936, PROT_READ|PROT_WRITE,
2014 Jul 25
3
[PATCH] launch: Close file descriptors after fork (RHBZ#1123007).
...24;
- if (max_fd > 65536)
- max_fd = 65536; /* bound the amount of work we do here */
- for (fd = 0; fd < max_fd; ++fd)
- close (fd);
+ close_file_descriptors (1);
/* It would be nice to be able to put this in the same process
* group as qemu (ie. setpgid (0, qemu_pid)). However this is
diff --git a/src/launch-uml.c b/src/launch-uml.c
index 2a6ddaf..88c684b 100644
--- a/src/launch-uml.c
+++ b/src/launch-uml.c
@@ -333,6 +333,9 @@ launch_uml (guestfs_h *g, void *datav, const char *arg)
goto dup_failed;
close (csv[1]);
+
+ /* RH...
2007 May 25
0
dcc error on centos 5
.../init.d/spamassassin restart
Stopping spamd: [ OK ]
Starting spamd: [ OK ]
then,
[root at mailgw ~]# /etc/init.d/rcDCC start
Then, I checked logs, It gives below erros.
May 25 13:31:51 mailgw dccm[30935]: setpgid(): Permission denied
May 25 13:31:51 mailgw dccm[30935]: 1.3.50 listening to /var/run/dcc/dccm
with /etc/dcc
May 25 13:31:51 mailgw dccm[30935]: DCC: Unable to bind to port
/var/run/dcc/dccm: Address already in use
May 25 13:31:51 mailgw dccm[30935]: DCC: Unable to create listening socket
on conn /...
2017 Jun 10
1
[PATCH] lib: direct, uml: Unblock SIGTERM in the hypervisor and recovery processes (RHBZ#1460338).
...espond to
+ * SIGTERM from the parent (RHBZ#1460338).
+ */
+ sigemptyset (&sigset);
+ sigaddset (&sigset, SIGTERM);
+ sigprocmask (SIG_UNBLOCK, &sigset, NULL);
+
/* It would be nice to be able to put this in the same process
* group as qemu (ie. setpgid (0, qemu_pid)). However this is
* not possible because we don't have any guarantee here that
diff --git a/lib/launch-uml.c b/lib/launch-uml.c
index eccc102f5..547ab5a69 100644
--- a/lib/launch-uml.c
+++ b/lib/launch-uml.c
@@ -147,6 +147,7 @@ launch_uml (guestfs_h *g, void *datav, const...
2014 Jul 30
2
[PATCH v2] launch: Close file descriptors after fork (RHBZ#1123007).
https://bugzilla.redhat.com/show_bug.cgi?id=1123007
This is version 2 of the patch which avoids incorrectly closing
stderr, so we can still see debug and error messages.
Rich.
2014 Jul 28
1
Re: [PATCH] launch: Close file descriptors after fork (RHBZ#1123007).
...024;
- if (max_fd > 65536)
- max_fd = 65536; /* bound the amount of work we do here */
- for (fd = 0; fd < max_fd; ++fd)
- close (fd);
+ close_file_descriptors (1);
/* It would be nice to be able to put this in the same process
* group as qemu (ie. setpgid (0, qemu_pid)). However this is
diff --git a/src/launch-uml.c b/src/launch-uml.c
index 2a6ddaf..88c684b 100644
--- a/src/launch-uml.c
+++ b/src/launch-uml.c
@@ -333,6 +333,9 @@ launch_uml (guestfs_h *g, void *datav, const char *arg)
goto dup_failed;
close (csv[1]);
+
+ /* RHB...
2020 Jul 27
3
[PATCH] Add syscall wrappers required by libkeyutils
...respond to 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"...
2004 Aug 06
0
No subject
...- Thread stack size increased again.
- Write to stdout directly for usage/-V info, so it doesn't get
swallowed if ices is configured to run in the background.
- Include system configuration info in ices -V output.
- Use setsid() to detach from tty, not setpgid().
- Load perl module as a proper module. This means you'd better return
1 at the end of your module.
- Set PYTHONPATH reliably (not using an automatic variable), and
removed the arbitrary length limit.
- Log file no longer appends PID. In general I t...
2003 Sep 23
1
3.7.1p1 appears to break pam session.
.... I would very much appreciate if
you guys could check this and verify that I am not introducing more
problems with this. So far this works for me.
--- session.c Tue Sep 23 10:14:47 2003
+++ session.c.orig Tue Sep 23 10:04:02 2003
@@ -1240,15 +1240,6 @@
# ifdef __bsdi__
setpgid(0, 0);
# endif
-# ifdef USE_PAM
- /*
- * PAM session wants to be run for LOGIN_CAP systems too!
- */
- if (options.use_pam) {
- do_pam_session();
- do_pam_setcred(0);
- }
-# endif /...
2009 Oct 21
1
[PATCH] Set LC_ALL=C before running qemu.
...: [PATCH] Set LC_ALL=C before running qemu.
---
src/guestfs.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/guestfs.c b/src/guestfs.c
index e49f57a..a25e9e7 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -1195,6 +1195,8 @@ guestfs__launch (guestfs_h *g)
setpgid (0, 0);
#endif
+ setenv ("LC_ALL", "C", 1);
+
execv (g->qemu, g->cmdline); /* Run qemu. */
perror (g->qemu);
_exit (1);
@@ -1486,7 +1488,7 @@ test_qemu (guestfs_h *g)
g->qemu_help = NULL;
g->qemu_version = NULL;
- snprintf (cmd, sizeo...
2020 Jul 27
0
[PATCH] Add syscall wrappers required by libkeyutils
...kely
>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 (...
2013 Aug 09
4
[PATCH v2 0/4] Experimental User-Mode Linux backend.
v1 was here:
https://www.redhat.com/archives/libguestfs/2013-August/msg00005.html
This now works, to some extent. The main problem now is that devices
are named /dev/ubd[a-] which of course confuses everything. I'm
thinking it may be easier to add a udev rule to rename them.
Rich.
2013 Aug 09
5
[PATCH 0/4] Not quite working User-Mode Linux backend.
This is a User-Mode Linux backend for libguestfs. You can select it
by doing:
export LIBGUESTFS_BACKEND=uml
export LIBGUESTFS_QEMU=/path/to/vmlinux
Note we're reusing the 'qemu' variable in the handle for convenience.
QEmu is not involved when using the UML backend.
This almost works. UML itself crashes when the daemon tries to
connect to the serial port. I suspect it's
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 Sep 11
3
Yum update frozen
Hello,
about one hour ago, I did a "yum update" on a remote centos 4.3
server. It said:
Install 2 Package(s)
Update 60 Package(s)
Remove 0 Package(s)
Total download size: 103 M
Is this ok [y/N]: y
then, after downloading:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Running Transaction
Updating : libgcc
2004 Aug 06
2
Are someone using icecast on AIX
...98 socklen_t... yeah checking for strftime...
(cached) yes checking for vprintf... (cached) yes checking for
gettimeofday... (cached) yes checking for strstr... (cached) yes checking
for snprintf... (cached) yes checking for vsnprintf... (cached) yes checking
for rename... (cached) yes checking for setpgid... (cached) yes checking for
basename... (cached) yes checking for setsockopt... (cached) yes checking
for gethostbyname_r... (cached) yes checking for gethostbyaddr_r... (cached)
yes checking for getrlimit... (cached) yes checking for setrlimit...
(cached) yes checking for umask... (cached) yes ch...
2012 Mar 09
1
[PATCH 1/2] Close all file descriptors in the recovery process.
...(max_fd == -1)
+ max_fd = 1024;
+ if (max_fd > 65536)
+ max_fd = 65536; /* bound the amount of work we do here */
+ for (fd = 0; fd < max_fd; ++fd)
+ close (fd);
+
/* It would be nice to be able to put this in the same process
* group as qemu (ie. setpgid (0, qemu_pid)). However this is
* not possible because we don't have any guarantee here that
--
1.7.9.1
2003 Nov 18
5
Testing of recent commits
There have been a few recent commits to portable OpenSSH that require
testing. It would be appreciated if you could grab the 20031118 (or
later) snapshot and give it a try on your platforms of choice.
Ideally, "giving it a try" means running the regress tests, in addition
to casual (non-production) use and reporting your experiences back to
the list. The more platforms and compile-time
2002 Dec 25
1
Trouble installing samba
...> checking for strchr... no
> checking for utime... no
> checking for utimes... no
> checking for getrlimit... no
> checking for fsync... no
> checking for bzero... no
> checking for memset... no
> checking for strlcpy... no
> checking for strlcat... no
> checking for setpgid... no
> checking for mknod... no
> checking for mknod64... no
> checking for memmove... no
> checking for vsnprintf... no
> checking for snprintf... no
> checking for asprintf... no
> checking for vasprintf... no
> checking for setsid... no
> checking for glob... no
>...