From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1199 invoked by alias); 12 Dec 2019 19:18:58 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 1187 invoked by uid 89); 12 Dec 2019 19:18:58 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=ulli, Ulli X-HELO: mailsrv.cs.umass.edu Received: from mailsrv.cs.umass.edu (HELO mailsrv.cs.umass.edu) (128.119.240.136) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Dec 2019 19:18:57 +0000 Received: from [138.110.119.112] (unknown [138.110.119.112]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id 4E929401CE24; Thu, 12 Dec 2019 14:18:55 -0500 (EST) Reply-To: moss@cs.umass.edu Subject: Re: non-persistant storage? To: cygwin@cygwin.com References: <20191212120041.GA7699@tik.uni-stuttgart.de> From: Eliot Moss Message-ID: <8905c7b6-b2e6-52bf-bcdd-66890db91e9e@cs.umass.edu> Date: Thu, 12 Dec 2019 21:27:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <20191212120041.GA7699@tik.uni-stuttgart.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-12/txt/msg00082.txt.bz2 On 12/12/2019 7:00 AM, Ulli Horlacher wrote: > I need to store some data (a few kB) non-persistant. > On a real UNIX I would use /var/run, because after a shutdown all its > content is lost. > But on cygwin /var/run is stored on disk. > > I cannot use an environment variable, because different processes need to > read/write the data. > > /proc is non-persistant (in respect to a reboot), but It is not a generic > storage place. > > What can I use with cygwin instead? > > Installing third party software is not an option, it must work with a > standard Windows (and cygwin). I would think of temp directories, such as /tmp. They can be cleaned out at will on restart, no? Regards - Eliot -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple