search for: posix_spawn

Displaying 20 results from an estimated 52 matches for "posix_spawn".

2007 May 30
5
Determining Parent''s execname
Hi, I''m trying to trace the io of a given file, but I have a feeling that it''s been done via a script, as such I''d like to be able to tell the names of the calling processe tree, similar to what ptree produces. Is there any way to get this information without running ptree using system()? Thanks, Darren.
2019 Apr 07
2
ssh with proxyjump on windows 10
...n data C:\\Users\\jsore/.ssh/config debug1: C:\\Users\\jsore/.ssh/config line 11: Applying options for test debug1: Setting implicit ProxyCommand from ProxyJump: ssh -v -W '[%h]:%p' apple debug1: Executing proxy command: exec ssh -v -W '[test]:22' apple CreateProcessW failed error:2 posix_spawn: No such file or directory https://github.com/openssh/openssh-portable/blob/c327813ea1d740e3e367109c17873815aba1328e/ssh.c#L1180 It doesn't appear there's an easy way to tell openssh that I need to use `ssh.exe` instead of `ssh`. For 8.1, could something be adjusted to make this work? N...
2024 Mar 15
1
Using multiple temporary indexes during updates
...ut I've never managed to get around to profiling to see what was going on or if it was even still the case (probably makes most sense to do at the same time as implementing https://trac.xapian.org/ticket/444 ). Incidentally, for the "fork() on a large process is slow" bit at the end, posix_spawn() may help assuming it's flexible enough to do what you want. The glibc implementation calls "clone(2) with CLONE_VM and CLONE_VFORK flags". Cheers, Olly
2019 Nov 04
4
Debugging clang with debugger breakpoints ?
...strings that state command options. I know how to use the debugger, this is what I attempt to debug: clang --target=msp430 -emit-llvm -c -S -Oz main.c The debugger works fine, but only on the main thread. However breakpoints do not work with the code that was invoked as a child process with posix_spawn The call to posix_spawn happens in file “Program.inc” on the ‘Execute' function. The actual call is this Err = posix_spawn(&PID, Program.str().c_str(), FileActions, /*attrp*/ nullptr, const_cast<char **>(Argv), const_cast<char **&g...
2015 Jun 02
3
[Bug 2407] New: OpenSSH uses deprecated APIs on MacOS
https://bugzilla.mindrot.org/show_bug.cgi?id=2407 Bug ID: 2407 Summary: OpenSSH uses deprecated APIs on MacOS Product: Portable OpenSSH Version: -current Hardware: All OS: Mac OS X Status: NEW Severity: normal Priority: P5 Component: Miscellaneous Assignee: unassigned-bugs at
2023 Feb 16
1
Robustifying R_CleanTempDir a bit more
...special symbols should suffice (it and the backslash being the only allowed ways to "un-quote" a single-quoted string), I would like to suggest solving the problem without the use of quoting: #include <spawn.h> char ** argv = { "rm", "-Rf", Sys_TempDir, NULL }; posix_spawnp(NULL, "rm", NULL, NULL, argv, NULL); Are there Unix-like platforms on which R is intended to work that don't have posix_spawn()? Circa-2014 versions of both Solaris and OpenBSD seem to have it. Spawning the process manually by means of [v]fork() and exec() is probably not worth the...
2016 Aug 09
2
[LTO] Bypass the integrated assembler ...
...(here the .s) and invoke a chain of commands. The linker plugin is not designed this way, it is invoked by the linker and given the input bitcode will produce one or multiple object files for the linker. What you want to do could be achieved by hacking the LTOCodeGenerator and do something like use posix_spawn and pipes to invoke your assembler. Otherwise you can also do something like what Kevin had in mind: ask LTOCodeGenerator to produce the bitcode before the backend and exit the linker process at this point, then run llc on it to get the assembly, assemble it, and re-invoke the linker. This is proba...
2023 Feb 16
2
Robustifying R_CleanTempDir a bit more
...t and the backslash being the only allowed ways to > "un-quote" a single-quoted string), I would like to suggest solving the > problem without the use of quoting: > > #include <spawn.h> > > char ** argv = { "rm", "-Rf", Sys_TempDir, NULL }; > posix_spawnp(NULL, "rm", NULL, NULL, argv, NULL); > > Are there Unix-like platforms on which R is intended to work that don't > have posix_spawn()? Circa-2014 versions of both Solaris and OpenBSD > seem to have it. Spawning the process manually by means of [v]fork() > and exec() is...
2010 Sep 20
1
[PATCH] Fix error launching libguestfs when euid != uid
When writing to a RHEV target, virt-v2v launches the libguestfs appliance with euid:egid = 36:36, which is required to write to an NFS target using root_squash. Since the update to use an febootstrap cached appliance, this causes an error on startup as the cached files are owned by root, but the cache directory is owned by 36:36. The reason for this is that execve() resets euid and egid to uid and
2019 Nov 04
2
Debugging clang with debugger breakpoints ?
Hi David, Thank you for your help. Please, can you elaborate on this?. The command line that I get with -### starts with this: clang version 9.0.1 (https://github.com/llvm/llvm-project.git 6e38ee067b8fa08792f551fb565bbb8ada4864b1) Target: msp430 Thread model: posix InstalledDir: /Users/joan/LLVM-9/llvm-project/build/Debug/bin "/Users/joan/LLVM-9/llvm-project/build/Debug/bin/clang"
2018 May 14
1
Unable to build 'lld' on Mac OS 10.9
...eek64 - not found -- Looking for mallctl -- Looking for mallctl - not found -- Looking for mallinfo -- Looking for mallinfo - not found -- Looking formalloc_zone_statistics -- Looking formalloc_zone_statistics - found -- Looking for getrlimit -- Looking for getrlimit - found -- Looking for posix_spawn -- Looking for posix_spawn - found -- Looking for pread -- Looking for pread - found -- Looking for realpath -- Looking for realpath - found -- Looking for sbrk -- Looking for sbrk - found -- Looking for strerror -- Looking for strerror - found -- Looking for strerror_r -- Looking for st...
2012 Oct 12
2
[LLVMdev] cmake+ninja build error for compiler-rt sources
...nd -- Looking for opendir -- Looking for opendir - found -- Looking for readdir -- Looking for readdir - found -- Looking for getcwd -- Looking for getcwd - found -- Looking for gettimeofday -- Looking for gettimeofday - found -- Looking for getrlimit -- Looking for getrlimit - found -- Looking for posix_spawn -- Looking for posix_spawn - found -- Looking for pread -- Looking for pread - found -- Looking for rindex -- Looking for rindex - found -- Looking for strchr -- Looking for strchr - found -- Looking for sbrk -- Looking for sbrk - found -- Looking for srand48 -- Looking for srand48 - found -- Looki...
2012 Oct 13
2
[LLVMdev] [cfe-dev] cmake+ninja build error for compiler-rt sources
...> > -- Looking for readdir - found > > -- Looking for getcwd > > -- Looking for getcwd - found > > -- Looking for gettimeofday > > -- Looking for gettimeofday - found > > -- Looking for getrlimit > > -- Looking for getrlimit - found > > -- Looking for posix_spawn > > -- Looking for posix_spawn - found > > -- Looking for pread > > -- Looking for pread - found > > -- Looking for rindex > > -- Looking for rindex - found > > -- Looking for strchr > > -- Looking for strchr - found > > -- Looking for sbrk > >...
2012 Oct 12
0
[LLVMdev] cmake+ninja build error for compiler-rt sources
...dir - found > -- Looking for readdir > -- Looking for readdir - found > -- Looking for getcwd > -- Looking for getcwd - found > -- Looking for gettimeofday > -- Looking for gettimeofday - found > -- Looking for getrlimit > -- Looking for getrlimit - found > -- Looking for posix_spawn > -- Looking for posix_spawn - found > -- Looking for pread > -- Looking for pread - found > -- Looking for rindex > -- Looking for rindex - found > -- Looking for strchr > -- Looking for strchr - found > -- Looking for sbrk > -- Looking for sbrk - found > -- Looking f...
2012 Oct 13
0
[LLVMdev] [cfe-dev] cmake+ninja build error for compiler-rt sources
...ddir - found >> > -- Looking for getcwd >> > -- Looking for getcwd - found >> > -- Looking for gettimeofday >> > -- Looking for gettimeofday - found >> > -- Looking for getrlimit >> > -- Looking for getrlimit - found >> > -- Looking for posix_spawn >> > -- Looking for posix_spawn - found >> > -- Looking for pread >> > -- Looking for pread - found >> > -- Looking for rindex >> > -- Looking for rindex - found >> > -- Looking for strchr >> > -- Looking for strchr - found >> &gt...
2011 Jan 05
0
[LLVMdev] include/Config/config.h discrepancies between CMake and autofoo builds
Eric Christopher <echristo at apple.com> writes: >>> Or cleanup both headers from unused stuff by Eric's >>> suggestion? >> >> I'm not sure this is a good idea (not that it is bad either). Murphy's >> Law says that a function that you remove today will be used tomorrow. > > I meant literally functions that aren't used in the
2024 Mar 15
1
Using multiple temporary indexes during updates
Hi, I have been playing at converting the index update stage of the Recoll indexer to use multiple temporary indexes and a final merge. This yields an improvement factor of almost 3 (on my quad-core CPU), for the total indexing time for "easy" files like HTML pages. This is nice (!) and I wanted to share my admiration for the "compact()" method. If someone is interested in a
2011 Jan 05
2
[LLVMdev] include/Config/config.h discrepancies between CMake and autofoo builds
On Jan 5, 2011, at 6:34 AM, Óscar Fuentes wrote: > arrowdodger <6yearold at gmail.com> writes: > >>> Or to say it with other words: patches welcome. >> >> So, how should i proceed? Make CMake-generated config to be identical to >> autotools one? > > That would be a good thing. > > Please note that some checks are a bit tricky. A function that
2012 Oct 13
2
[LLVMdev] [cfe-dev] cmake+ninja build error for compiler-rt sources
...Looking for getcwd > >> > -- Looking for getcwd - found > >> > -- Looking for gettimeofday > >> > -- Looking for gettimeofday - found > >> > -- Looking for getrlimit > >> > -- Looking for getrlimit - found > >> > -- Looking for posix_spawn > >> > -- Looking for posix_spawn - found > >> > -- Looking for pread > >> > -- Looking for pread - found > >> > -- Looking for rindex > >> > -- Looking for rindex - found > >> > -- Looking for strchr > >> > -- Look...
2011 Jan 05
4
[LLVMdev] include/Config/config.h discrepancies between CMake and autofoo builds
...st standard functions is amazingly trivial: AC_CHECK_FUNCS([backtrace ceilf floorf roundf rintf nearbyintf getcwd ]) AC_CHECK_FUNCS([powf fmodf strtof round ]) AC_CHECK_FUNCS([getpagesize getrusage getrlimit setrlimit gettimeofday ]) AC_CHECK_FUNCS([isatty mkdtemp mkstemp ]) AC_CHECK_FUNCS([mktemp posix_spawn realpath sbrk setrlimit strdup ]) AC_CHECK_FUNCS([strerror strerror_r strerror_s setenv ]) AC_CHECK_FUNCS([strtoll strtoq sysconf malloc_zone_statistics ]) AC_CHECK_FUNCS([setjmp longjmp sigsetjmp siglongjmp]) contains most of them. If they're non-trivial (like the ones I needed to add for OSX...