Search Results

Search: Posts Made By: aobai
2,067
Posted By aobai
libevent http 1.4
HI , guys . I'm programming in c . I want to know how to use libevent l.4 ,especially the use of http . can anybody give me a tutorial or URL?

I just find this one , but it's about 2.0 ...
2,539
Posted By aobai
system("rm -f `ls /tmp/*.tmp`")
system("rm -f `ls /tmp/*.tmp`")
2,539
Posted By aobai
I see you , but I just know its suffix . not...
I see you , but I just know its suffix . not its full name :confused:


thank you !!
2,539
Posted By aobai
system() regular expression
Hi all :

I want to del all *.tmp files in my /tmp/ , so I use system("rm -f /tmp/*.tmp");
but It's wrong , I must pass a path without regular expressions . eg:

system("rm -f ...
Forum: Programming 04-14-2010
3,028
Posted By aobai
multi-threaded memory leak
Hello All :
I write a .c program to test the exactually resource the memory leak
as follows:

1 #include <stdio.h>
2 #define NUM 100000
3 void *Thread_Run(void * arg){
4 ...
Forum: Programming 04-08-2010
9,344
Posted By aobai
My signal handler just simple as this . no...
My signal handler just simple as this . no change of errno value .

signal_handl(int ){
printf("errno %d ",errno);
}
Forum: Programming 04-08-2010
9,344
Posted By aobai
Catch signal SIGPIPE print errno but it's value equal to 2
catch signal SIGPIPE ,print errno but it's value equal to 2(ENOENT)

#define ENOENT 2 /* No such file or directory */

is it should be EPIPE ?
#define EPIPE 32 /* Broken pipe...
Forum: Programming 03-24-2010
9,037
Posted By aobai
Hi Loic, my process is a multi-threaded...
Hi Loic,
my process is a multi-threaded ,I use the following code at the beginning of the thread(not the main thread) as you suggested
struct sigaction act;
...
Forum: Programming 03-18-2010
9,037
Posted By aobai
Program terminated with signal 13, Broken pipe. ...
Program terminated with signal 13, Broken pipe.
#0 0x4011ceb8 in select () from /lib/libc.so.0
(gdb) bt 6
#0 0x4011ceb8 in select () from /lib/libc.so.0
#1 0x00015298 in NSvrCtrl::GetEvent...
Forum: Programming 03-09-2010
9,037
Posted By aobai
Actually . I test , the collapse has nothing...
Actually . I test , the collapse has nothing to do with the signal SIGSEGV or whether it has enough space .

I use signal function . but can't catch SIGSEGV when it's down .


I...
Forum: Programming 03-06-2010
9,037
Posted By aobai
:b:
:b:
Forum: Programming 03-03-2010
9,037
Posted By aobai
I use " ulimit -c unlimited ", not" ulimit -c 100...
I use " ulimit -c unlimited ", not" ulimit -c 100 "or something else .



I can use functions setjmp, longjmp ,and signal to catch SIGSEGV/SIGBUS and do anything i want .
Even so , I...
Forum: Programming 03-02-2010
9,037
Posted By aobai
yes I know the test example I wrote can get a ...
yes I know the test example I wrote can get a coredump .

The question is why my multi-threaded process can't get a coredump when it down or collapsed ;)

Thanks !
Forum: Programming 03-01-2010
9,037
Posted By aobai
When a process is down - how to get a coredump in arm board?
Running a multi-threaded program in my arm board one day or more ,The process down .
In order to get a coredump to analysis of the stack , . I use commands ulimited -c unlimited .
but...
Forum: IP Networking 03-28-2009
0
p2p
2,426
Posted By aobai
p2p
OK Guys I need help.
I'm interest in P2p , can you recommend some books or sites about it

thx in advance
Forum: IP Networking 03-28-2009
9,585
Posted By aobai
man dig
man dig
Forum: Programming 01-18-2009
17,960
Posted By aobai
i run it in my reahat ,it's ok!
i run it in my reahat ,it's ok!
Forum: Programming 01-18-2009
17,960
Posted By aobai
#include <stdio.h> void foo(int id, char...
#include <stdio.h>
void foo(int id, char **first_name, char **last_name)
{
/*
this is just an example to illustrate my problem... real code makes
use of the "id" parameter.
*/
...
Forum: Programming 01-18-2009
17,960
Posted By aobai
first ,you don't use the int ID int fuction foo,...
first ,you don't use the int ID int fuction foo,
second ,you malloc fname and lname in a fuction(although they are pointers ,but you know ,you can't get a val from a fuction by pass it a pointer...
16,721
Posted By aobai
ubuntu,try it !
ubuntu,try it !
16,721
Posted By aobai
both of windows and unix are useful !
both of windows and unix are useful !
Forum: Programming 06-22-2007
234,914
Posted By aobai
can it be bigger than 127? thanks
can it be bigger than 127?
thanks
2,032
Posted By aobai
cool ,i like it :):)
cool ,i like it :):)
Forum: What is on Your Mind? 06-22-2007
4,009
Posted By aobai
:D:D:D:D:D:D:D:D:D:D:
:D:D:D:D:D:D:D:D:D:D:
40,299
Posted By aobai
maybe ps -aux | grep root
maybe
ps -aux | grep root
Showing results 1 to 25 of 33

 
All times are GMT -4. The time now is 10:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy