・Make時のログ In file included from /usr/local/include/postgresql/server/c.h:822, from /usr/local/include/postgresql/server/postgres.h:48, from mod_blog.c:9: /usr/local/include/postgresql/server/port.h:273:1: warning: "closesocket" redefi ned In file included from /usr/local/include/apache/httpd.h:29, from mod_blog.c:2: /usr/local/include/apache/ap_config.h:1084:1: warning: this is the location of t he previous definition ・ソースファイル(ヘッダ部) #include <string.h> #include "httpd.h" #include "http_config.h" #include "http_protocol.h" #include "ap_config.h" #include "http_log.h" #include "libapreq/apache_request.h" #include <postgres.h> #include <libpq-fe.h> <略>
Unix系前提で話をすれば... o closeすればプロセスリソースは破棄. o 該当資源を最後にcloseしたやつは待たされるかもしれんが プロセスリソースは破棄されている(システムコールから戻ってくれば) o 残ったI/O処理は破棄される(ドライバが正常/以上完了すれば) o ドライバの作りによっては, プロセスはゾンビになってkillすらできない o 最悪の場合システムダウン