Displaying 20 results from an estimated 26 matches for "child_pid".
2011 Jun 22
3
sandbox pre-auth privsep child
...fy the API.
+ */
+ box = xcalloc(1, sizeof(*box));
+ return box;
+}
+
+void
+ssh_sandbox_child(struct ssh_sandbox *box)
+{
+ /* Nothing to do here */
+}
+
+void
+ssh_sandbox_parent_finish(struct ssh_sandbox *box)
+{
+ free(box);
+}
+
+void
+ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid)
+{
+ /* Nothing to do here */
+}
+
+#endif /* SANDBOX_NULL */
Index: sandbox-rlimit.c
===================================================================
RCS file: sandbox-rlimit.c
diff -N sandbox-rlimit.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ sandbox-rlimit.c 22 Jun 2011 12:35:14 -0000
@@ -...
2011 Jun 23
1
sandbox for OS X
...rrno.h>
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
+#include "log.h"
+#include "sandbox.h"
+#include "xmalloc.h"
+
+/* Darwin/OS X sandbox */
+
+struct ssh_sandbox {
+ pid_t child_pid;
+};
+
+struct ssh_sandbox *
+ssh_sandbox_init(void)
+{
+ struct ssh_sandbox *box;
+
+ /*
+ * Strictly, we don't need to maintain any state here but we need
+ * to return non-NULL to satisfy the API.
+ */
+ debug3("%s: preparing Darwin sandbox", __func__);
+ box = xcalloc(1, sizeof...
2011 Apr 13
4
AGI and forking
...ate any necessary future communication via other
channels).
Is this the sort of thing I need?
########## begin code snippet ##########
#!/usr/bin/perl -w
use strict;
use Asterisk::AGI;
my $AGI = new Asterisk::AGI;
my %params = $AGI->ReadParse();
$SIG{CHLD} = "IGNORE";
if (my $child_pid = fork) {
# This is executed in the parent process
exit;
}
elsif (defined $child_pid) {
# This is executed in the child process
close STDIN;
close STDOUT;
close STDERR;
# Load some more modules and do some stuff
# that will take a long time
exit;
}
else {...
2016 Jan 21
4
is there some blocking in 11.21.0
>Are you saying that this worked in earlier versions but you started to
>get the delay when you updated to 11.21.0? Or just that you happened to
>be using 11.21.0 the first time you tried this scenario?
I should have said "first time" trying this.
Any thoughts?
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2003 Nov 12
0
smbmount patch
...e/client/smbmount.c 2003-11-12 08:13:41.580181864 +0200
@@ -59,6 +59,11 @@
exit(0);
}
+static void parent_is_ready(int sig)
+{
+ /* just continue to execute - parent is ready to die :)) */
+}
+
static void daemonize(void)
{
int j, status;
@@ -72,6 +77,12 @@
if (child_pid > 0) {
while( 1 ) {
+ /*
+ * Funny, isn't it? ;))
+ * But children is pause()ing for this signal
+ * to go and do preporly thing with parent.
+ */
+...
2014 Feb 14
1
ConfBridge on asterisk 11
I believe I am running an AGI (to put users in a conf) before the
confbridge is built. So the users are not really get in the conf...
exten X,1,run agi to put users in conf
exten X,n,ConfBridge()
How do I have in the dial plan ConfBridge() and someplace
run an AGI that brings the users I want into that Conf.
I cannot delay in the AGI and wait for the conf because
the conf is not built until I
2004 Jan 01
1
[PATCH] Add winbind-backed NTLMSSP support to Cyrus-SASL
...:04 rjs3 Exp $";
- if (!len) len = xstrlen(str);
-
- while (len && cp && *cp) {
- *cp = toupper((int) *cp);
- cp++;
- len--;
- }
+/***************************** Server Section *****************************/
- return (str);
-}
+struct ntlm_context {
+ pid_t child_pid;
+ FILE *pipe_in;
+ FILE *pipe_out;
+ int first;
+ sasl_secret_t *password; /* user password */
+ unsigned int free_password; /* set if we need to free password */
+ unsigned int sent_password; /* set if we have told ntlm_auth the password already */
+ const char *authid;
+ const char *domain;
+};...
2001 Apr 04
1
compiler warnings about format strings
...e);
+ (int)(st.st_mode & 0777), filename);
error("It is recommended that your private key files are NOT accessible by others.");
return 0;
}
Index: serverloop.c
@@ -96,8 +96,8 @@
wait_pid = wait((int *) &child_wait_status);
if (wait_pid != -1) {
if (wait_pid != child_pid)
- error("Strange, got SIGCHLD and wait returned pid %d but child is %d",
- wait_pid, child_pid);
+ error("Strange, got SIGCHLD and wait returned pid %ld but child is %ld",
+ (long)wait_pid, (long)child_pid);
if (WIFEXITED(child_wait_status) ||
WIFS...
2009 Feb 26
0
[LLVMdev] Garbage collection
On 2009-02-26 18:22, Gabor Greif wrote:
> On Feb 26, 2:18 pm, Ralf Schneider <li... at gestaltgeber.com> wrote:
>
>> Hello,
>>
>> 2009/2/26 Talin <viri... at gmail.com>
>>
>>
>>> The IR-level intrinsics themselves don't much help you *write* a GC, so
>>> much as to integrate one with LLVM. What is provided is essentially
2011 Dec 21
1
Winbind authentication and wbinfo -i user no longer work after uprading to 3.6.1
...c 21 07:47:25 debinsp3200 winbindd[3489]: ads_ranged_search failed with: Time limit exceeded
<smbd>
[2011/12/21 07:47:10.102879, 1] lib/serverid.c:197(serverid_deregister)
Deleting serverid.tdb record failed: NT_STATUS_NOT_FOUND
[2011/12/21 07:47:10.103603, 1] smbd/server.c:303(remove_child_pid)
Could not remove pid 3491 from serverid.tdb
[2011/12/21 07:47:10.104114, 1] smbd/server.c:317(remove_child_pid)
Could not find child 3491 -- ignoring
[2011/12/21 07:48:10.174369, 1] lib/serverid.c:197(serverid_deregister)
Deleting serverid.tdb record failed: NT_STATUS_NOT_FOUND
[2011/1...
1999 Jan 24
1
HPUX 9.05 & Samba 2.0.0 & problems -> solved !
...ST sig_cld_leave_status);
}
diff -u --recursive --new-file source/smbd/open.c source.new/smbd/open.c
--- source/smbd/open.c Thu Dec 31 03:37:01 1998
+++ source.new/smbd/open.c Sun Jan 24 23:32:32 1999
@@ -225,8 +225,10 @@
*/
pid_t wpid;
int status_code;
- if ((wpid = sys_waitpid(child_pid, &status_code, 0)) < 0) {
- DEBUG(0,("check_access_allowed_for_current_user: The process is no
longer waiting!\n"));
+ while ((wpid = sys_waitpid(child_pid, &status_code, 0)) < 0) {
+ if(errno == EINTR)
+ continue;
+ DEBUG(0,("check_access_allow...
2009 Feb 26
3
[LLVMdev] Garbage collection
On Feb 26, 2:18 pm, Ralf Schneider <li... at gestaltgeber.com> wrote:
> Hello,
>
> 2009/2/26 Talin <viri... at gmail.com>
>
> > The IR-level intrinsics themselves don't much help you *write* a GC, so
> > much as to integrate one with LLVM. What is provided is essentially a
> > mechanism for walking the stack, and a means to insert read/write
> >
2015 Sep 02
3
latest yum update messed up chrome
...06:13043:0901/222041:ERROR:native_backend_kwallet_x.cc(412)] Error contacting kwalletd (isEnabled)
[13006:13046:0901/222041:ERROR:zygote_host_impl_linux.cc(374)] Did not receive ping from zygote child
[6:6:0901/222041:ERROR:zygote_linux.cc(573)] Zygote could not fork: process_type renderer numfds 5 child_pid -1
[13006:13046:0901/222041:ERROR:zygote_host_impl_linux.cc(374)] Did not receive ping from zygote child
I wish I could go back to a previous version of 44, but I can't find a previous version. It seems google likes to hide those.
This is the CentOS I have:
lsb_release -a
LSB Version: :co...
2000 Jul 31
0
[patch] smbmount fixes for samba-2.0.7, testers wanted!
...#define SMBFS_DEBUG 1 */
-
extern struct in_addr ipzero;
extern int DEBUGLEVEL;
extern BOOL in_client;
extern pstring user_socket_options;
+extern fstring remote_machine;
static pstring my_netbios_name;
static pstring password;
@@ -73,7 +67,7 @@
signal( SIGTERM, exit_parent );
if ((child_pid = fork()) < 0) {
- fprintf(stderr,"could not fork\n");
+ DEBUG(0,("could not fork\n"));
}
if (child_pid > 0) {
@@ -151,12 +145,12 @@
/* have to open a new connection */
if (!(c=cli_initialise(NULL)) || (cli_set_port(c, smb_port) == 0) ||
!cli_connect(c, s...
2010 Nov 04
1
Fwd: win32/process - small bug?
It might be a bit before I can get to this, so I thought I''d pass it on.
Also, while I was stuck in the airport in Minneapolis, I decided that
the getrlimit method should be refactored to remove the process from
the job (if it wasn''t already in one) after it''s finished, if
possible.
Dan
---------- Forwarded message ----------
From: Ben Nagy <ben.nagy.web at
2015 Sep 02
0
latest yum update messed up chrome
...901/222041:ERROR:native_backend_kwallet_x.cc(412)] Error contacting kwalletd (isEnabled)
> [13006:13046:0901/222041:ERROR:zygote_host_impl_linux.cc(374)] Did not receive ping from zygote child
> [6:6:0901/222041:ERROR:zygote_linux.cc(573)] Zygote could not fork: process_type renderer numfds 5 child_pid -1
> [13006:13046:0901/222041:ERROR:zygote_host_impl_linux.cc(374)] Did not receive ping from zygote child
>
> I wish I could go back to a previous version of 44, but I can't find a previous version.? It seems google likes to hide those.
> This is the CentOS I have:
>
> lsb_re...
2006 May 07
2
Problem with the new version of win32-process
Hi all,
Well, I''ve messed something up in the pure Ruby Process.fork method. If
you run the test_fork_waitpid.rb file (in CVS), you''ll see this error:
c:/ruby/lib/ruby/site_ruby/1.8/windows/process.rb:132:in `call'': can''t
convert false into Integer (TypeError)
from c:/ruby/lib/ruby/site_ruby/1.8/windows/process.rb:132:in
`OpenProcess''
2001 Jul 09
1
sshd problem on Solaris 7: Control-C hangs shell
...essage received from client. */
static int fdout_eof = 0; /* EOF encountered reading from fdout. */
+static int fdout_maybe_eof = 0;
static int fderr_eof = 0; /* EOF encountered readung from fderr. */
static int fdin_is_tty = 0; /* fdin points to a tty. */
@@ -107,6 +108,9 @@
wait_pid, child_pid);
if (WIFEXITED(child_wait_status) ||
- WIFSIGNALED(child_wait_status))
+ WIFSIGNALED(child_wait_status)) {
child_terminated = 1;
+ if (fdout_maybe_eof)
+ fdout_eof = 1;
+ }
}
signal(SIGCHLD, sigchld_handler);
@@ -338,10 +342,14 @@
/* Read and buffer any available std...
2005 Aug 11
4
win32-process + ruby-breakpoint = strangebehavior
> -----Original Message-----
> From: win32utils-devel-bounces@rubyforge.org
> [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of
> Bill Atkins
> Sent: Thursday, August 11, 2005 8:39 AM
> To: win32utils-devel@rubyforge.org
> Subject: [Win32utils-devel] win32-process + ruby-breakpoint =
> strangebehavior
>
>
> I''m getting really strange
1999 Jan 25
0
SAMBA digest 1954
...;diff -u --recursive --new-file source/smbd/open.c source.new/smbd/open.c
>--- source/smbd/open.c Thu Dec 31 03:37:01 1998
>+++ source.new/smbd/open.c Sun Jan 24 23:32:32 1999
>@@ -225,8 +225,10 @@
> */
> pid_t wpid;
> int status_code;
>- if ((wpid = sys_waitpid(child_pid, &status_code, 0)) < 0) {
>- DEBUG(0,("check_access_allowed_for_current_user: The process is no
>longer waiting!\n"));
>+ while ((wpid = sys_waitpid(child_pid, &status_code, 0)) < 0) {
>+ if(errno == EINTR)
>+ continue;
>+ DEBUG(0,(...