search for: mypid

Displaying 13 results from an estimated 13 matches for "mypid".

Did you mean: mpid
2006 Jun 03
8
dtrace causing sigtrap?
...mps. If I continue the same stopped process using "prun" from the command line, all is fine. Any ideas? (This is S10u1) dtrace2='' BEGIN { printf("resuming %d\n", $target); system("/bin/prun %d\n",$target); } '' dtrace -wqn "$dtrace2" -p $mypid --chris
2009 Jul 11
1
Passing arguments to forked children
...- at least you can kill the parent window running R in a GUI environment). In any case, here is the code: # -- BEGIN CODE library("fork"); myforksub <- function(mymsg='default') { cat(mymsg,sep='\n'); exit(); } myforkparent <- function(n=10, mymsg='') { mypid <- c(); for (i in 1:n) { mypid <- c(mypid, fork(myforksub(mymsg))); } # wait(NULL) apparently does not wait for all children to finish for (i in 1:n) { wait(mypid[i]); } } myforkparent(mymsg='new'); # -- END CODE Obviously, 'fork(myforksub)' will work fine,...
2006 Jul 31
5
use tracemem to dump content in function read/write
Hi Expert I want to use dtrace to monitor the content change of one file. I made following scripts, #!/usr/sbin/dtrace -s inline int MYPID = $1; syscall::write:entry /pid == MYPID/ { tracemem(arg1, arg2); printf("\n"); } It always has an following error bash-3.00$ sudo dumpFIFO.dtrace 3836 dtrace: failed to compile script ./dumpFIFO.dtrace: line 19: tracemem( ) argument #2 must be a non-zero positive integral co...
2015 Mar 05
4
[LLVMdev] global variable
...setAlignment(8); int64_64->dump(); LoadInst* int32_65 = new LoadInst(gvar_int32_myFlag, "", false, OptAplusOne); int32_65->setAlignment(4); int32_65->dump(); But when I run my pass, it generates an error, I don't know why. @myFlag = global i32 0, align 4 @myPid = common global [20 x i64] zeroinitializer, align 16 //this is the global, %117 = load i64* %t, align 8 %118 = load i32* @myFlag, align 4 While deleting: i32* %myFlag Use still stuck around after Def is destroyed:@myFlag = global i32 <null operand!>, align 4 I am sure I initialize the g...
2007 Jun 11
1
2 iosnoop scripts: different results
...s %7s %10s %2s %7s\n", "COMMAND", "PID", "FILE", "SIZE", "DEVICE", "RW", "MS"); } io:::start { start[args[0]->b_edev, args[0]->b_blkno] = timestamp; command[args[0]->b_edev, args[0]->b_blkno] = execname; mypid[args[0]->b_edev, args[0]->b_blkno] = pid; } io:::done /start[args[0]->b_edev, args[0]->b_blkno]/ { elapsed = timestamp - start[args[0]->b_edev, args[0]->b_blkno]; printf("%16s %5d %32s %7d %10s %2s %3d.%03d\n", command[args[0]->b_edev, args[0]->b_blkno], myp...
2004 Jun 03
0
[BUG] lockres already get by self
When running iozone on ocfs2, after about half an hour, the call trace print and iozone hang. >From the call trace, the reason is "BUG()" in ocfs_acquire_lockres. int ocfs_acquire_lockres (ocfs_lock_res * lockres, __u32 timeout) { if (lockres->thread_id != mypid) { else { printk("lockres in_use=%d, pid=%d, mypid=%d\n", lockres->in_use, lockres->thread_id, mypid); BUG(); lockres->in_use++; spin_unlock (&lockres->lock_mutex); break; } } This happened both on 2.4 and 2.6 kernel. Report as bug 83 -----------...
1997 May 03
3
Re: Buffer Overflows: A Summary
-----BEGIN PGP SIGNED MESSAGE----- > Date: Fri, 2 May 1997 12:33:00 -0500 > From: "Thomas H. Ptacek" <tqbf@ENTERACT.COM> > On almost all Unix operating systems, having superuser access in a > chroot() jail is still dangerous. In some recent revisions of 4.4BSD > operating systems, root can trivially escape chroot(), as well. I was thinking about possible attacks
2010 Jun 30
0
drb problem? ringy-dingy won't answer...
...[#{Time.now.strftime("%Y%m%d%H%M %S")}]" @result << "***#{msg}" rescue @result << "#{scriptname} Aborted [#{Time.now.strftime("%Y%m%d%H%M %S")}] \n #{$!} \n #{caller.to_yaml}" ensure return @result end end DRb.start_service myPid = Process.pid.to_s puts myPid ring_server = Rinda::RingFinger.primary ring_server.write([:name, :ScriptServer, ScriptServer.new(), "ScriptServer #{myPid}"], Rinda::SimpleRenewer.new) DRb.thread.join ******** The wor...
1997 May 05
0
Re: Re: Re: Buffer Overflows: A Summary
...try > to remount the partition without the nodev. Moreover you could MAKE > the /dev entry and use that if it were necessary. But that is not the > issue. The issue is that a chrooted environment is not protected against > a root-user inside the chrooted environment. Try > int i, mypid =getpid (); > for (i=2;i<32768;i++) > if (i != mypid) kill (i, 9); > Ok. This doesn''t get him out of the chrooted environment, but you can > see that having root in a chrooted environment is almost as powerful > as non-chrooted. A chrooted environment should be so m...
2004 Jul 10
10
Syslinux 2.10 does not load initrd anymore
Hello all, I just installed syslinux 2.10 on my usb-stick. It still boots then, but doesn't load initrd.gz (same config file..). Reverting back to syslinux 2.09 works fine, eg: initrd.gz is loaded. Something changed in initrd handling code? greetz, Jaap Crezee NB I am willing to share you more information or hints how to solve the problem. I am using kernel 2.6.7-bk20
2010 Jun 19
1
[PATCH 1/2] linux/syslinux.c: Silence warnings
...: "/", cfg); if (!file) { diff --git a/linux/syslinux.c b/linux/syslinux.c index 888df3d..3a51f7e 100644 --- a/linux/syslinux.c +++ b/linux/syslinux.c @@ -276,12 +276,13 @@ int main(int argc, char *argv[]) int mnt_cookie; int patch_sectors; int i; + int ret; mypid = getpid(); umask(077); parse_options(argc, argv, MODE_SYSLINUX); - asprintf(&subdir, "%s%s", + ret = asprintf(&subdir, "%s%s", opt.directory[0] == '/' ? "" : "/", opt.directory); if (!subdir) { perro...
2003 Sep 26
1
openssh-3.7.1p2: no pam_close_session() invocation
..._close_session() function won't get invoked. Some debugging shows, that the call is protected by an if-statement (module auth-pam.c, function sshpam_cleanup): if (sshpam_session_open) { pam_close_session(sshpam_handle, PAM_SILENT); /* cb, 26.09.03 */ debug2("\n\nin sshpam_cleanup: mypid = %d\n\n", getpid()); sshpam_session_open = 0; } I guess that the forked child process that calls the sshpam_cleanup() function is forked before the parent calls do_pam_session() (which sets sshpam_session_open to true). pam_close_session() will be invoked by removing surrounding if-s...
2015 Nov 10
2
[PATCH] mtools: Remove local xpread/xpwrite, use ones from syslxcom
...nux.c b/mtools/syslinux.c index 5924430..3686be0 100755 --- a/mtools/syslinux.c +++ b/mtools/syslinux.c @@ -42,8 +42,8 @@ #include "setadv.h" #include "syslxopt.h" #include "syslxfs.h" +#include "syslxcom.h" -char *program; /* Name of program */ pid_t mypid; void __attribute__ ((noreturn)) die(const char *msg) @@ -59,63 +59,6 @@ void __attribute__ ((noreturn)) die_err(const char *msg) } /* - * read/write wrapper functions - */ -ssize_t xpread(int fd, void *buf, size_t count, off_t offset) -{ - char *bufp = (char *)buf; - ssize_t rv; -...