This would be easy with fork(), but I've got no MMU. I've heard that vfork() blocks the parent process until the child exits or executes exec(). How would I accomplish something like this?:
pid_t pid = vfork();
if (pid == -1) {
// fail
exit(-1);
}
if (pid == 0) {
// child
while(1) {
// Do my daemon stuff
}
...
How to extract "Matthew" from "mtjoseph:6/MKTCzMS/YU.:10974:10060:Matthew"
...
The people who really know the answer to this question are those who develop for programs or libraries which are included in Linux distributions, and which depend on other libraries which are included in Linux distributions. Them just telling me what they do in terms of the development environment I'm describing would be helpful.
The p...
I love emacs, but something has been nagging me. I can't seem to get emacs to store local backups of files when I am editing them via tramp.
Currently, when I edit a local file a set of old versions is stored in the /tmp/myusername/emacs_backup folder. However, when I am FTPing via tramp, old versions aren't stored there (I assume it i...
I got a ssh account running on a shared hosting server without root permission, after I installed the latest stable Git release via git-scm.com by "make install", the new command is successful install under my home directory which is ~/bin default automatically.
However, this new version of git seems only function with specify full path...
I want to capture the tcp fragmentation packets using wireshark. I wrote a tcp client and a tcp server. I have set MTU to 500, MSS to 1500. Also I have set IP_MTU_Discouver to IP_PMTUDISC_DONT. The send/receive buffer size is 1448 and the input file to the client is 15kb. But I cannot capture any fragmentation. What's the problem?
Thank...
Hello!, how i can delete this file?, i think that is a corrupt file ina vfat filesystem.
-????????? ? ? ? ? ? 100.jpg
Thanks
...
I've notices lot of admins change default ssh port. Is there any rational reason to do so?
...
I'm writing a program that needs to be able to read in the time zone files on Linux. And that means that I need to be able to consistently find them across distros. As far as I know, they are always located in /usr/share/zoneinfo. The question is, are they in fact always located in /usr/share/zoneinfo? Or are there distros which put them...
Hi,
I am writing a python program in linux and in part of it running the pdftotext executable to convert a pdf text. The code I am currently using is given below.
pdfData = currentPDF.read()
tf = os.tmpfile()
tf.write(pdfData)
tf.seek(0)
out, err = subprocess.Popen(["pdftotext", "-", "-"], stdin = tf, stdout=subprocess.PIPE ).communi...
I am new to GUI development. What is the best GUI development package for python on linux (ubuntu being more specific)?
...
Hello,
We are currently using Apache and Interworx control panel, when we install litespeed and activate that versus apache all websites loose mysql connections. Any ideas on how to fix this?
Thanks
...
I recently read a post (admittedly its a few years old) and it was advice for fast number-crunching program:
"Use something like Gentoo Linux with 64 bit processors as you can compile it natively as you install. This will allow you to get the maximum punch out of the machine as you can strip the kernel right down to only what you need."...
Hello,
Can anyone suggest some learning materials to accomplish my question? I'm working with the Linux kernel.
I'm planning on conducting an experiment, but need access to my process' page table, and so far have only found kernel space code to accomplish what I want.
Thanks
...
I'm writing a compiler project which will produce assembly code as the target language. However, there are some small changes that need to be accounted for depending on the operating system, and I'm not sure how to check for the OS. In case it matters, I am concerned with only 32bit. I've seen in some source code something like
#ifdef W...
In order to check the client servers is alive at anytime, I use the long tcp connecting to deal with this.
So is there any method to detect the long tcp connect from client servers? it's good to do with Ruby
...
Python's fcnt module provides a method called [flock][1] to proved file locking. It's description reads:
Perform the lock operation op on file
descriptor fd (file objects providing
a fileno() method are accepted as
well). See the Unix manual flock(2)
for details. (On some systems, this
function is emulated using fcntl().)fu...
I have a great problem with this porting
building usual sdl is simple
http://www.libsdl.org/extras/win32/mingw32/README.txt
zlib libjpeg libpng giflib libtiff
installing was hard but i did
then SDL_image install was simple
I took my sources from simple lerning project
make clean && make
g++ compile good
at the linking stage hid very...
hello.
i am looking for the best linux library that will let me detect a string charset.
any idea ?
...
Is there any way to dump the call stack in a running process in C or C++ every time a certain function is called? What I have in mind is something like this:
void foo()
{
print_stack_trace();
// foo's body
return
}
Where print_stack_trace works similarly to caller in Perl.
Or something like this:
int main (void)
{
//...