Public » MiniRedis Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

save in background when possible

Changeset f2bc0e1acd94

Parent ce0c0239533c

by Profile picture of Benjamin PollackBenjamin Pollack

Changes to one file · Browse files at f2bc0e1acd94 Showing diff from parent ce0c0239533c Diff from another changeset...

Change 1 of 1 Show Entire File miniredis.py Stacked
 
178
179
180
181
 
 
 
 
 
 
182
183
184
 
178
179
180
 
181
182
183
184
185
186
187
188
189
@@ -178,7 +178,12 @@
  return True     def handle_save(self, client): - self.save() + try: + if not os.fork(): + self.save() + sys.exit(0) + except OSError: + self.save()   self.log(client, 'SAVE')   return True