Pixel Pedals of Tomakomai

北海道苫小牧市出身の初老の日常

2011-01-22から1日間の記事一覧

DBIとforkとInactiveDestroy

@lestrratさんが教えてくれたことのメモ。以下のコードはエラーとなります*1。 use strict; use warnings; use DBI; my $dbh = DBI->connect('DBI:mysql:mysql', 'root', 'password') or die DBI->errstr; my $pid; if ($pid = fork) { # NOP in the parent …