ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: REAL <root@mmedia2.kemsu.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] thread safe fwrite
Date: Thu, 27 Jan 2011 17:08:28 +0600
Message-ID: <4D41522C.6060209@mmedia2.kemsu.ru> (raw)
In-Reply-To: <20110127104257.GA1812@mw.mithraen.ru>

27.01.2011 16:42, Денис Смирнов пишет:
> Еще вопрос -- если я передам fwrite NULL вместо FILE* -- он честно ловит
> SIGSEGV. У меня в параллельном треде может произойти такая глупость, что
> временно там будет NULL (это Asterisk). Тогда мне никак кроме как ручными
> lock'ами уже не выкрутиться?

А нельзя ли в самом Asterisk проверать на NULL перед вызовом fwrite?

-- 

REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ


  reply	other threads:[~2011-01-27 11:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-25  4:37 [devel] I: GNU gold is default linker in Fedora Kirill A. Shutemov
2011-01-25  5:30 ` Денис Смирнов
2011-01-25  8:30   ` Kirill A. Shutemov
2011-01-27  9:03     ` [devel] thread safe fwrite Денис Смирнов
2011-01-27  9:41       ` Kirill A. Shutemov
2011-01-27 10:42         ` Денис Смирнов
2011-01-27 11:08           ` REAL [this message]
2011-01-27 10:54             ` Денис Смирнов
2011-01-31 18:00 ` [devel] I: GNU gold is default linker in Fedora Dmitry V. Levin
2012-05-20 20:00   ` [devel] I: ld --no-copy-dt-needed-entries by default Dmitry V. Levin
2012-05-20 20:10     ` Led
2012-05-20 21:58       ` Dmitry V. Levin
2012-05-21  1:28         ` led
2012-05-21 23:39           ` Dmitry V. Levin
2011-01-31 19:17 ` [devel] I: GNU gold is default linker in Fedora Kirill A. Shutemov
2011-01-31 19:29   ` Alexey Tourbin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D41522C.6060209@mmedia2.kemsu.ru \
    --to=root@mmedia2.kemsu.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git