Skip to content

getting pid of spawned exec in phing

I am using phing and running selenium server via ExecTask. Sometimes I need to stop running server by killing its process. Is there a possibility in phing of getting PID of process spawned in ExecTask ? Answer No, ExecTask cannot give the pid of spawned processes directly. It can only return it’s exit s…

why am i not able to declare sigset_t with std=c99?

If i compile the below program with std=c99, i get an error, but the program compiles fine without the c99 flag. Why? Answer Because sigset_t is not part of <signal.h> in standard C and you requested strict standards compatibility with -std=c99. That is, a strictly standard C program can do: and expect …

Writing to eventfd from kernel module

I have created an eventfd instance in a userspace program using eventfd(). Is there a way in which I can pass some reference (a pointer to its struct or pid+fd pair) to this created instance of eventfd to a kernel module so that it can update the counter value? Here is what I want to do: I am developing a

OCaml Compile Error: /usr/bin/ld: cannot find -lstr

I am trying to compile the source code of MEGAM Ocaml library on an Ubuntu 64 machine. I have OCaml installed (v 3.12.1), using sudo apt-get install ocaml. I am having an issue when running the “make” command in the terminal on the unzipped source code, with OCaml returning the error: The makefile…

GCC 4.7.2 requires ppl?

I’m trying to configure GCC 4.7.2, but it’s failing with configure: error: Unable to find a usable PPL I’ve looked in GCC prerequisites page and PPL isn’t mentioned anywhere. I’m using CLooG 0.17.0, which uses ISL, and as such no longer requires PPL (as far as I can tell) Is ther…

how can i use regex with locate command in linux

I want to use the locate command with regex but i am not able to use it. I want to find pip file which is in /usr folder. i am trying this locate -r “/usr/*pip” Answer To use globbing characters in your query you shouldn’t specify regex (as you do with -r option), so just do: From the man pa…