개소리 왈왈2009. 11. 22. 00:10
찍는 문제 다 맞도록 기원해 주시옵소서~!


근데.. 졸업점수 보다 더 안나올듯 ㅠ.ㅠ
공부를 하나도 안했어!!!! OTL

'개소리 왈왈' 카테고리의 다른 글

힘든하루..  (6) 2009.11.23
와우가 미친게야~  (4) 2009.11.22
티스토리 초대장 뭥미?  (4) 2009.11.18
문득 하고 싶은게 생겼다. 해야 할게 생겼다.  (0) 2009.11.17
드디어! 만렙!  (2) 2009.11.14
Posted by 구차니
개소리 왈왈/영화2009. 11. 21. 23:56
300번은 종점-종점이 아닌 한쪽끝이 순환선인데...
덕분에 한바퀴 돌았다. ㅋㅋ

저렴하게 서울 투어!



300번 버스 노선도인데, 한쪽 끝이 종점이 아닌 순환이다.
일단 애인을 집까지 바래다 주려고 버스를 천호에서 탔다.
한참을 가는데 사람들이 다 내리는데 언제 목적지를 지나갈까 의아해 하면서(먼산..)
계속 앉아 있다 보니..

"이번 역은 군자교 입니다. 다음역은.."

오잉? 잘못 들었나?
지나가는 지하철 노선은.. 장한평 4번 출구.. 뭥미?!?!

알고 봤더니 한바퀴 돌고 제자리 OTL 털썩
아무튼 천호에서 군자이동한 셈이라 시간을 제외하더라도(실제로 한 시간 가까이 걸렸다. 6시에 타서 7시에 내림)
거리가 짧아서 기본요금 -ㅋ-!

내리고 보니 대략 민망한 상황 ㅠ.ㅠ



결론 : 저렴하게 300번 버스로 서울 투어하세요~ (응?)

'개소리 왈왈 > 영화' 카테고리의 다른 글

크리스마스 캐롤 IMAX 3D (2009)  (8) 2009.11.28
우리 밥팅이 생일 축하해!  (0) 2009.11.27
2012 (2009)  (6) 2009.11.15
빼빼로 데이!  (2) 2009.11.11
디스트릭트 9 - District 9  (4) 2009.10.18
Posted by 구차니
Linux2009. 11. 20. 16:23
마지막으로 소스를 대충 보면, wait()를 하는 부분이 없네요. TestA가 daemon 형태로 re-parent한다면 상관없겠지만, 그렇지 않다면 아마 zombie 프로세스가 될 듯 합니다. zombie를 막으려면 daemon 형태로 만들거나, wait()로 child process의 return을 받아야 합니다. 그리고 이 때, SIGCHLD를 비롯, signal 처리를 하려면 pthread_sigmask() 등을 써서, signal을 원하지 않은 thread에서는 해당 시그널이 발생하지 않도록 block시켜야 합니다.

[링크 : http://kldp.org/node/103568]

All of these system calls are used to wait for state changes in a child of the calling process, and obtain information about the child whose state has changed. A state change is considered to be: the child terminated; the child was stopped by a signal; or the child was resumed by a signal. In the case of a terminated child, performing a wait allows the system to release the resources associated with the child; if a wait is not performed, then terminated the child remains in a "zombie" state (see NOTES below).

[링크 : http://linux.die.net/man/2/waitpid]

프로세스 생성하고 parent에서 waitpid 하지 않으면 좀비가 생성된다.
ps 치면 Zombie 들이 우글우글 -ㅁ-
Posted by 구차니
Linux2009. 11. 20. 15:46
Kernel Threads

Sometimes the process args will be unavailable; when this is happens, ps will instead print the executable name in brackets.

This is correct, try execl(program_path, NULL) and you will see your process listed in brackets.

[링크 : http://www.linuxquestions.org/questions/linux-newbie-8/square-brackets-in-output-of-ps-aux-not-matching-output-of-ps-ejh-716134/]

Low PIDs. Very perceptive of you. Low PIDs usually denote a process started by init on boot

[링크 : http://www.linuxquestions.org/questions/linux-general-1/ps-process-names-in-brackets-644364/]


딱히 이렇다할 편한 대답은 없는데..
아무튼 부팅시에 구동된 낮은 번호의 PID를 지는 프로세스와, (낮은 숫자가 아니어도.. 되긴한다)
 root     29953    11  0 Nov17 ?        00:00:00     [pdflush]
커널 쓰레드가 []를 둘러 싼다고 하는데
 root      1936     1  0 Oct05 ?        00:00:12   [nfsd]

일단은 전반적으로 root가 돌리는 데몬 프로세스 라는 유사성이 있다.
자세한 내용은 나중에 검색해서 추가해야겠다.
Posted by 구차니
Linux2009. 11. 20. 15:26
state     The state is given by a sequence of characters, for example, "RWNA". The first character indicates the run state of the process:

D     Marks a process in disk (or other short term, uninterruptible) wait.
I     Marks a process that is idle (sleeping for longer than about 20 seconds).
L     Marks a process that is waiting to acquire a lock.
R     Marks a runnable process.
S     Marks a process that is sleeping for less than about 20 seconds.
T     Marks a stopped process.
W     Marks an idle interrupt thread.
Z     Marks a dead process (a "zombie").

Additional characters after these, if any, indicate additional state information:

+     The process is in the foreground process group of its control terminal.
<     The process has raised CPU scheduling priority.
E     The process is trying to exit.
J     Marks a process which is in jail(2). The hostname of the prison can be found in /proc/<pid/status>.
L     The process has pages locked in core (for example, for raw I/O).
N     The process has reduced CPU scheduling priority (see setpriority(2)).
s     The process is a session leader.
V     The process is suspended during a vfork(2).
W     The process is swapped out.
X     The process is being traced or debugged.

[링크 : http://www.gsp.com/cgi-bin/man.cgi?section=1&topic=ps]


Posted by 구차니
전 총리가 언어정책이 잘못되었다고 이야기 하다니
자기가 추진한 정책을 자기 입으로 스스로 잘못했다고 하는 저런 용기
그 자체가 부럽다.




우리나라의 영어 우선교육을 바라보면서..
참 씁쓸함이 밀려온다.

[링크 : http://media.daum.net/society/education/view.html?cateid=1012&newsid=20091120103508030&p=yonhap]




2009/11/12 - [개소리 왈왈/직딩의 비애] - "하루늦은" 20091111 퇴근일기

'개소리 왈왈 > 정치관련 신세한탄' 카테고리의 다른 글

통신사 낙시질!  (2) 2009.12.07
기차표가 달라졌어요!  (4) 2009.12.06
한미정상회담 .. 악 MY EYE!  (2) 2009.11.19
확실히 세상은 미쳐가고 있다.  (4) 2009.10.21
그대의 이름은 허본좌!  (2) 2009.10.20
Posted by 구차니
Linux2009. 11. 20. 13:49
#include <sys/param.h>
#include <libutil.h>

struct pidfh *pidfile_open(const char *path, mode_t mode, pid_t *pidptr);
int pidfile_write(struct pidfh *pfh);
int pidfile_close(struct pidfh *pfh);
int pidfile_remove(struct pidfh *pfh);

[링크 : http://fuse4bsd.creo.hu/localcgi/man-cgi.cgi?pidfile+3]


데몬들은 서비스 관리를 위해서 pid 파일을 가지고 있다.
이녀석은 열어 보면, 단순하게 pid를 %d 로 출력한 내용뿐인데,
일일이 열어서 읽고, atoi 돌리기 귀찮아서 검색을 해보니 pidfile 이라는 함수 패밀리가 있었다.

음. 그런데 die.net에 없는거 보면.. 표준 함수는 아닌건가?
FC6에도 존재하지 않는 함수 -ㅁ-

사족 : 음.. 아마도.. Linux가 아니라 Freebsd Man page 라서 인가?
Posted by 구차니
분류가 모호한 글2009. 11. 20. 09:40
Google Syntax Highlighter와 합쳐
웹에서 프로그래밍을 할 수 있는 웹 프로그램이다.

그래도 웬지 어플은 오프라인에서 해야 제맛? (응?)

[링크 : http://coderunner.tistory.com/]

'분류가 모호한 글' 카테고리의 다른 글

up close and personal  (0) 2009.12.08
기믹(Gimmick)  (0) 2009.11.24
콜론, 콤마, 세미콜론 등등등  (0) 2009.11.17
URI URL URN UNC  (0) 2009.10.27
memcpy 속도 향상에 대한 어셈블리 넘사벽...  (2) 2009.09.07
Posted by 구차니
밥먹고 올라왔더니..

눈앞에 TV에서 그분이 나오셨다. 옆에는 오바바~ 아저씨

"젠장!"




고개를 돌렸더니..

내 자리 TV에서도 그분이 나오셨다.


"닝기리!"





문득 그분의 키가 궁금해졌다.
다음 검색 결과 2007년 대선당시 172cm 라는 글이 있는데..
그럼 오바마는... 190?


근데.. 검색결과 중에
시장시절 175cm
대선당시 172cm

줄어들었다?


... 검색해보니 오바마 190cm 란다 ㄱ-

'개소리 왈왈 > 정치관련 신세한탄' 카테고리의 다른 글

기차표가 달라졌어요!  (4) 2009.12.06
싱가포르가 부럽다  (0) 2009.11.20
확실히 세상은 미쳐가고 있다.  (4) 2009.10.21
그대의 이름은 허본좌!  (2) 2009.10.20
한글날입니다.  (10) 2009.10.09
Posted by 구차니
개소리 왈왈2009. 11. 18. 20:18
...







그냥 잊고 득도 해야하나?

기준을 공개하면 기준에 맞추어 글쓰는 스팸 블로그가 발생한다고 해서 공개는 못한다고 하지만
도무지 그 기준을 종잡을수가 없다.

'개소리 왈왈' 카테고리의 다른 글

와우가 미친게야~  (4) 2009.11.22
토익보러 갑니다!  (12) 2009.11.22
문득 하고 싶은게 생겼다. 해야 할게 생겼다.  (0) 2009.11.17
드디어! 만렙!  (2) 2009.11.14
12:12:12 작성된 글  (0) 2009.11.11
Posted by 구차니